Head elevation by an automatic adjustable bed